package com.neusoft.restaurant.service.impl;

import com.neusoft.restaurant.entity.LoginUserVo;
import com.neusoft.restaurant.entity.SysUser;
import com.neusoft.restaurant.mapper.SysUserMapper;
import com.neusoft.restaurant.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: zhongda
 * @createTime: 2023/11/24 15:42
 * @email: fromzhongda@163.com
 * @description:
 */
@Service
public class SysUserServiceImpl implements ISysUserService {

    @Autowired
    private SysUserMapper userMapper;

    @Override
    public SysUser selectUserByUserName(String userName) {
        return userMapper.selectUserByUserName(userName);
    }

    @Override
    public int insertUser(SysUser user) {

        return userMapper.insertUser(user);
    }

}
